package Stack;

/**
 * User: cool
 * Date: 2017/11/14
 * Time: 17:36
 */
public class Node {
    private Object object;
    private Node nextNode;

    public Node(Object object) {
        this.object = object;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Node getNextNode() {
        return nextNode;
    }

    public void setNextNode(Node nextNode) {
        this.nextNode = nextNode;
    }

    @Override
    public String toString() {
        return object.toString();
    }
}
